package Domd3;

public class test {
    public static void main(String[] args) {
        function(new Person());
        function(new Student());
    }
        public static void function(Object obj){
            System.out.println(obj);
        }
}
    class Person{};

    class Student{};